package com.rustic.server.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
  import java.util.Date;
import lombok.Data;

/**
 * 表[user]对应实体类
 *
 * @author auto
 *
 */

@Data
@TableName(value = "`user`")
@ApiModel(value = "表user的实体类")
public class User {

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", dataType = "Integer")
    @TableId(value="`id`",type = IdType.AUTO)
    private Integer id;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", dataType = "String")
    @TableField("`mobile`")
    private String mobile;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称", dataType = "String")
    @TableField("`nickname`")
    private String nickname;

    /**
     * 头像地址
     */
    @ApiModelProperty(value = "头像地址", dataType = "String")
    @TableField("`avatar`")
    private String avatar;

    /**
     * 介绍
     */
    @ApiModelProperty(value = "介绍", dataType = "String")
    @TableField("`introduce`")
    private String introduce;

    /**
     * 性别（1男 2女）
     */
    @ApiModelProperty(value = "性别（1男 2女）", dataType = "int")
    @TableField("`sex`")
    private int sex;

    /**
     * 年龄
     */
    @ApiModelProperty(value = "年龄", dataType = "int")
    @TableField("`age`")
    private int age;

    /**
     * 所在地
     */
    @ApiModelProperty(value = "所在地", dataType = "String")
    @TableField("`address`")
    private String address;

    /**
     * 用户邮箱
     */
    @ApiModelProperty(value = "用户邮箱", dataType = "String")
    @TableField("`email`")
    private String email;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", dataType = "String")
    @TableField("`password`")
    private String password;

    /**
     * 密码salt
     */
    @ApiModelProperty(value = "密码salt", dataType = "String")
    @TableField("`salt`")
    private String salt;

    /**
     * 是否锁定
     */
    @ApiModelProperty(value = "是否锁定", dataType = "String")
    @TableField("`is_lock`")
    private String isLock;

    /**
     * 最后登陆IP
     */
    @ApiModelProperty(value = "最后登陆IP", dataType = "String")
    @TableField("`last_ip`")
    private String lastIp;

    /**
     * 最后登陆时间
     */
    @ApiModelProperty(value = "最后登陆时间", dataType = "Date")
    @TableField("`last_time`")
    private Date lastTime;

    /**
     * 注册ip
     */
    @ApiModelProperty(value = "注册ip", dataType = "String")
    @TableField("`create_ip`")
    private String createIp;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    @TableField("`create_time`")
    private Date createTime;

    /**
     * 通用状态(2正常 3删除)
     */
    @ApiModelProperty(value = "通用状态(2正常 3删除)", dataType = "int")
    @TableField("`data_status`")
    @TableLogic(value = "2", delval = "3")
    private int dataStatus;

}
